<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>EasyTalk Administrator's Control Panel</title>
<link type="text/css" rel="stylesheet" href="__PUBLIC__/css/admin/adminframe.css" />
<script type="text/javascript" src='__PUBLIC__/js/jquery.js'></script>
<script language="javascript">
function fnOnTabClick(tab)
{
	//修改Tab样式
    $("#header_tabs > ul > li").removeClass("current");
    $(tab).parent().parent().addClass("current");
}
function logout(){
	if (confirm("您确定要退出控制面板吗？"))
	top.location = '<?php echo U('public/adminLoginOut');?>';
	return false;
}
</script>
</head>
<body>
<!-- header -->
<div id="header">
  <div id="logo"> 管理后台</div>
  <div id="panel">

    <div id="header_tabs">
      <ul>
	 <?php if(is_array($menu)): foreach($menu as $menu_tab=>$vo): ?><li <?php if(($menu_tab)  ==  "index"): ?>class = "current"<?php endif; ?>>
          <span>
            
            <a href="<?php echo U('admin/left',array('tab'=>$menu_tab));?>" onclick="fnOnTabClick(this);" target="leftFrame" hidefocus="true"><?php echo ($vo["caption"]); ?></a>
          </span>
        </li><?php endforeach; endif; ?>
      </ul>

      <div id="header_links">
        <p>您好, <strong><?php echo ($username); ?></strong> &nbsp;&nbsp;[&nbsp;<a href="#" onClick="logout();">退出</a>&nbsp;]</p>
        <p><a href="http://www.soophp.com" class="btnlink" target="_blank">作者首页</a> </p>
      </div>
    </div>

    <div id="breadcrumbs"></div>

  </div>
</div>
<!-- /header -->
</body>
</html>